package com.mystery.mapper;

import org.apache.ibatis.annotations.Param;

import com.mystery.pojo.User;

import java.util.List;

public interface UserMapper {
	
    User login(@Param("username") String username, @Param("password") String password);

    int addUser(User user);

    int addFitness(User user);

    int update(@Param("username") String username, @Param("password") String password);

    User fitnessLogin(@Param("username") String username, @Param("password") String password);

    User managerLogin(@Param("username") String username, @Param("password") String password);

    List<User> list();

    List<User> search(@Param("username") String username);

    int delete(@Param("id") long id);
}
